package com.douyang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.douyang.pojo.VideoUploadCache;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoma
 * @since 2025-02-28
 */
public interface VideoUploadCacheService extends IService<VideoUploadCache> {

    Boolean checkChunkExist(String chunkMd5,String fileMd5);

    String uploadChunk(MultipartFile chunk, String chunkMd5,String fileMd5) ;

    void mergeChunk(String fileMd5);
}
